package com.yinni.service.impl.sys;

import com.yinni.dao.RiverDao;
import com.yinni.model.sys.RiverEntity;
import com.yinni.service.sys.RiverService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service( value = "riverServiceImpl")
public class RiverServiceImpl implements RiverService {

    @Autowired
    public RiverDao riverDao;

    @Override
    public List<RiverEntity> riversList(int pageSize, int start) {
        return riverDao.riversList(pageSize, start);
    }

    @Override
    public Integer riversSize(int pageSize, int start) {
        return riverDao.riversSize(pageSize, start);
    }

    @Override
    public void insertRiver(RiverEntity riverEntity) {
         riverDao.insertRiver(riverEntity);
    }

    @Override
    public void updateRiver(RiverEntity riverEntity) {
        riverDao.updateRiver(riverEntity);
    }

    @Override
    public void deleteRivers(List<String> groupId) {
        riverDao.deleteRiver(groupId);
    }

}
